<?php

namespace App\VO\UserOrder\MetaInfo;

use App\VO\BaseSearchInfoTrait;

class UserOrderSearchInfo
{
    use BaseSearchInfoTrait;

    /**
     * @var int
     */
    public $userId = 0;

    /**
     * 订单状态
     * @var array
     */
    public $orderStates = [];

    /**
     * @param int $userId
     */
    public function setUserId(int $userId): void
    {
        $this->userId = $userId;
    }

    /**
     * @return int
     */
    public function getUserId(): int
    {
        return $this->userId;
    }

    /**
     * @param array $orderStates
     */
    public function setOrderStates(array $orderStates): void
    {
        $this->orderStates = $orderStates;
    }

    /**
     * @return array
     */
    public function getOrderStates(): array
    {
        return $this->orderStates;
    }
}
